package com.book.service;/**
 * Created by CoolWen on 2017/4/26.
 */

import com.book.dao.AddressMapper;
import com.book.entity.Address;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author yicheng
 * @version 2017-04-26 14:53
 */
@Service("AddressService")
public class AddressServiceImpl implements AddressService {

    @Autowired
    private AddressMapper addressMapper;
    /**
     *
     * @param addressId
     * @return
     */

    @Override
    public Address findAddressById(Integer addressId) {
        return addressMapper.selectByPrimaryKey(addressId);
    }
}
